home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
rqs64.z
/
rqs64
Wrap
Text File
|
1998-10-30
|
11KB
|
265 lines
RRRRQQQQSSSS66664444((((1111)))) RRRRQQQQSSSS66664444((((1111))))
NNNNAAAAMMMMEEEE
rqs64 - fixes up 64-bit executable or shared object to be QUICKSTARTable
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
rrrrqqqqssss66664444 [-_t timestamp_value_in_hex] [-_l text_address_in_hex] [-_c
so_locations_file] [-_u so_locations_file] [-_f] [-_L] [-_L_d_i_r] [-_r
root_path] [-_c_h_r_o_o_t root_path] [-_l_o_g <file>] [-_r_l_d__a_d_d_r <address>] [-
_r_l_d__a_d_d_r__o_n_l_y] [-_r_l_d__u_n_r_e_s_o_l_v_e__c_h_e_c_k__o_n_l_y] [-_r_l_d__f_o_r_c_e__n_o_q_u_i_c_k_s_t_a_r_t__o_n_l_y]
_o_b_j_e_c_t
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_r_q_s_6_4 takes an object, either an executable or a shared object, and using
its liblist will then redo all the pre-relocations. For shared object
only, if -_l_o_a_d__a_d_d_r_e_s_s is specified, then the specified address will be
used as the lowest virtual address for that shared object, otherwise
options -_c_h_e_c_k__r_e_g_i_s_t_r_y and/or -_u_p_d_a_t_e__r_e_g_i_s_t_r_y will be used to figure
out possible QUICKSTART addresses for that shared object, just like _l_d.
_r_q_s_6_4 will create a new version of the object and save it back in place,
overwriting the previous version, so user may want to save a copy of the
object somewhere before requickstarting it.
For an object to be requickstartable, the bit _R_H_F__R_E_Q_U_I_C_K_S_T_A_R_T must be
set in the DT_MIPS_FLAGS field of its .dynamic section. This bit is
normally set by _l_d. After an object has been requickstarted, the bit
_R_H_F__R_E_Q_U_I_C_K_S_T_A_R_T_E_D will be set in the DT_MIPS_FLAGS field of its .dynamic
section.
With the ----mmmm option _r_q_s will move an object to a requested address even if
the result will not quickstart.
----ffff Requickstart _o_b_j_e_c_t even if _R_H_F__R_E_Q_U_I_C_K_S_T_A_R_T is not set in _o_b_j_e_c_t.
----ffffoooorrrrcccceeee____rrrreeeeqqqquuuuiiiicccckkkkssssttttaaaarrrrtttt
is an alternate spelling of the ----ffff option.
----tttt timestamp_value_in_hex
specifies a timestamp value in hex to replace the one in the
DT_MIPS_TIME_STAMP field of the .dynamic section, applicable to
shared object only.
----ttttiiiimmmmeeeessssttttaaaammmmpppp timestamp_value_in_hex
is an alternate spelling of the ----tttt option.
----llll text_address_in_hex
specifies the lowest virtual address for the shared object being
rqs'ed, when specified, options -check_registry and -update_registry
will be ignored.
----llllooooaaaadddd____aaaaddddddddrrrreeeessssssss text_address_in_hex
is an alternate spelling of the ----llll option.
PPPPaaaaggggeeee 1111
RRRRQQQQSSSS66664444((((1111)))) RRRRQQQQSSSS66664444((((1111))))
----cccc so_locations_file
Check the location of this shared object's segments and make sure
they stay out of the way of others in the so_locations_file. A
single registry file, either with ----cccc or ----uuuu is allowed. Applicable
to shared object only.
----cccchhhheeeecccckkkk____rrrreeeeggggiiiissssttttrrrryyyy so_locations_file
is an alternate spelling of the ----cccc option.
----uuuu so_locations_file
Register the location of this shared object's segments and make sure
they stay out of the way of others in the so_locations_file.
so_locations_file is updated if it is writable. A single registry
file, either with ----cccc or ----uuuu is allowed. Applicable to shared object
only.
----uuuuppppddddaaaatttteeee____rrrreeeeggggiiiissssttttrrrryyyy so_locations_file
is an alternate spelling of the ----uuuu option.
----LLLL Change the algorithm of searching for libraries to never look in the
default directories, namely /usr/lib:/lib. This option has the same
semantics as -L in ld.
----LLLLddddiiiirrrr
Change the algorithm of searching for libraries to look in _d_i_r
before looking in the default directories. This option has the same
semantics as -Ldir in ld. The environment variable
_L_D__L_I_B_R_A_R_Y_6_4__P_A_T_H can also be used for this purpose.
----mmmm Move the dso even if address overlaps are detected (without this
option address overlaps cause _r_q_s to exit without doing anything).
If an address overlap is detected the RHF_QUICKSTART flag is reset
(to 0) in the dynamic section. Generally useful only if the ----llll
option is also on the command line.
----vvvv Makes rqs more verbose. Generally intended for debugging, but is
useful if one wants to know if the ----mmmm option detected any address
overlaps, as this enables a message about such overlaps.
----rrrr root_path
Change the path of the default directories that rqs uses for
searching libraries by appending _r_o_o_t__p_a_t_h to the front of the
default path, just like that in _RLD_ROOT. It can also be a
colon(:) separated list. In fact, the environment variable
__R_L_D__R_O_O_T can also be used for this purpose. (For a new 32bit ABI
object, use __R_L_D_N_3_2__R_O_O_T instead of __R_L_D__R_O_O_T)..TP ----rrrrooooooootttt root_path
is an alternate spelling of the ----rrrr option.
----cccchhhhrrrrooooooootttt root_path
This causes the named directory _r_o_o_t__p_a_t_h to become the root
directory, the starting point for path searches for path names
beginning with /.
PPPPaaaaggggeeee 2222
RRRRQQQQSSSS66664444((((1111)))) RRRRQQQQSSSS66664444((((1111))))
----lllloooogggg logfile
Pipes all error messages to _l_o_g_f_i_l_e instead of standard output.
----rrrrlllldddd____aaaaddddddddrrrr address
Sets the dynamic section DT_MIPS_RLD_TEXT_RESOLVE_ADDR to _a_d_d_r_e_s_s.
----rrrrlllldddd____aaaaddddddddrrrr____oooonnnnllllyyyy
Restricts the changes to only be to the dynamic section
DT_MIPS_RLD_TEXT_RESOLVE_ADDR (only effective if the -_r_l_d__a_d_d_r
option is also on the command line).
----rrrrlllldddd____uuuunnnnrrrreeeessssoooollllvvvveeee____cccchhhheeeecccckkkk____oooonnnnllllyyyy
Restricts the changes to be to the dynamic section's
DT_MIPS_FLAGS to set or unset RHF_NO_UNRES_UNDEF depending on if
there were-not or were any undefined variables.
----rrrrlllldddd____ffffoooorrrrcccceeee____nnnnooooqqqquuuuiiiicccckkkkssssttttaaaarrrrtttt____oooonnnnllllyyyy
Restricts the changes to be to the dynamic section's DT_MIPS_FLAGS
to be to reset the RHF_QUICKSTART flag.
The following options must be put into the environment variable ____RRRRQQQQSSSS____AAAARRRRGGGGSSSS
to be understood: they cannot be on the command line.
----ddddeeeebbbbuuuugggg mmmmaaaapppp
Used for debugging _r_q_s. Prints information about the mapping
(address) of the object.
----ddddeeeebbbbuuuugggg ssssyyyymmmmbbbboooollll
Used for debugging _r_q_s. Prints information about the symbol
searches and symbol finding in the object (in symbol relocation).
----ddddeeeebbbbuuuugggg MMMMAAAALLLLLLLLOOOOCCCC
Used for debugging _r_q_s. Prints a trace of some of the
malloc/realloc calls.
----ddddeeeebbbbuuuugggg hhhhaaaasssshhhh
Used for debugging _r_q_s. Prints a trace of the hashing function used
searching a hash table for a symbol.
FFFFIIIILLLLEEEESSSS
/usr/etc/rqs64
/usr/lib64/so_locations
SSSSEEEEEEEE AAAALLLLSSSSOOOO
ld(1), rld(1), rqsall(1), and rqs(1).
NNNNOOOOTTTTEEEESSSS
To move a set of DSOs to a common base address a command such as in this
example
#!/bin/sh
for in dso1.so dso2.so dso3.so
do
PPPPaaaaggggeeee 3333
RRRRQQQQSSSS66664444((((1111)))) RRRRQQQQSSSS66664444((((1111))))
rqs -l 0x300000 -m -f $i
done
is useful. One might want to do this if a set of DSOs used by an
application takes too much virtual address space to lay out sequentially
and the set is too large to try to provide an _s_o__l_o_c_a_t_i_o_n_s at link time.
Some options have long and short spellings. For example, ----ffff and
----ffffoooorrrrcccceeee____rrrreeeeqqqquuuuiiiicccckkkkssssttttaaaarrrrtttt do the same thing. The short form is easier to
remember and spell. Because the long form is used in existing scripts
and programs, both forms will be supported.
Where any option specifies that a value supplied on the command line is
to be in hexadecimal, the value is interpreted as hexadecimal digits
whether or not a leading "0x" is part of the option value.
PPPPaaaaggggeeee 4444